# Copyright(c) 2008 Tri Tech Information Systems Inc. 
# Distributed under the Boost Software License, Version 1.0.
#     (See accompanying file ../../LICENSE_1_0.txt or copy at
#           http://www.boost.org/LICENSE_1_0.txt)
#     
ParseHeaderFile('qt.h')

AddIncludedFile("qtpointer.h")
AddIncludedFile("iostream")

CreateInterfaceWrapper('Qt')
QObject = CreateInterfaceWrapper('QObject')
QObject.excludeMethod('activate_signal')

def prepare_QObject(klass):
    klass.excludeMethod('qt_cast')
    klass.excludeMethod('qt_invoke')
    klass.excludeMethod('qt_emit')
    klass.setHoldType( "QtPointer< %s >" % klass.qualifiedName )

    klass.addInitCode("""
    """)

QObject.addPreparer(prepare_QObject)
